package com.fm.base.domain.proxy;

import java.util.Objects;

public class SockProxyProtocol implements ProxyProtocol {
	public String version;

	public SockProxyProtocol(String version) {
		this.version = version;
	}

	@Override
	public boolean equals(Object obj) {
		return obj instanceof SockProxyProtocol && Objects.equals(version, ((SockProxyProtocol) obj).version);
	}

	@Override
	public String toString() {
		return "sock" + (version == null ? "?" : version);
	}
}
